package com.ruoyi.hospital.service.doctor.impl;

import java.util.List;

import com.ruoyi.hospital.domain.doctor.DocScheduleDetail;
import com.ruoyi.hospital.mapper.doctor.DocScheduleDetailMapper;
import com.ruoyi.hospital.service.doctor.IDocScheduleDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 排版详细Service业务层处理
 * 
 * @author wendao
 * @date 2025-05-08
 */
@Service
public class DocScheduleDetailServiceImpl implements IDocScheduleDetailService
{
    @Autowired
    private DocScheduleDetailMapper docScheduleDetailMapper;

    /**
     * 查询排版详细
     * 
     * @param id 排版详细主键
     * @return 排版详细
     */
    @Override
    public DocScheduleDetail selectDocScheduleDetailById(Integer id)
    {
        return docScheduleDetailMapper.selectDocScheduleDetailById(id);
    }

    /**
     * 查询排版详细列表
     * 
     * @param docScheduleDetail 排版详细
     * @return 排版详细
     */
    @Override
    public List<DocScheduleDetail> selectDocScheduleDetailList(DocScheduleDetail docScheduleDetail)
    {
        return docScheduleDetailMapper.selectDocScheduleDetailList(docScheduleDetail);
    }

    @Override
    public List<DocScheduleDetail> selectDocScheduleDetailListBySid(Integer sid) {
        return docScheduleDetailMapper.selectDocScheduleDetailListBySid(sid);
    }

    /**
     * 新增排版详细
     * 
     * @param docScheduleDetail 排版详细
     * @return 结果
     */
    @Override
    public int insertDocScheduleDetail(DocScheduleDetail docScheduleDetail)
    {
        return docScheduleDetailMapper.insertDocScheduleDetail(docScheduleDetail);
    }

    /**
     * 修改排版详细
     * 
     * @param docScheduleDetail 排版详细
     * @return 结果
     */
    @Override
    public int updateDocScheduleDetail(DocScheduleDetail docScheduleDetail)
    {
        return docScheduleDetailMapper.updateDocScheduleDetail(docScheduleDetail);
    }

    /**
     * 批量删除排版详细
     * 
     * @param ids 需要删除的排版详细主键
     * @return 结果
     */
    @Override
    public int deleteDocScheduleDetailByIds(Integer[] ids)
    {
        return docScheduleDetailMapper.deleteDocScheduleDetailByIds(ids);
    }

    /**
     * 删除排版详细信息
     * 
     * @param id 排版详细主键
     * @return 结果
     */
    @Override
    public int deleteDocScheduleDetailById(Integer id)
    {
        return docScheduleDetailMapper.deleteDocScheduleDetailById(id);
    }

    @Override
    public int deleteDocScheduleDetailBySid(Integer sid) {
        return docScheduleDetailMapper.deleteDocScheduleDetailBySid(sid);
    }
}
